package com.demo.steammanagement.model.vo;

import com.demo.steammanagement.common.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Data
public class GamesVO extends BaseVO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 游戏名称
     */
    private String name;

    /**
     * 游戏描述
     */
    private String description;

    /**
     * 游戏图片URL
     */
    private String imageUrl;

    /**
     * 账号总数量
     */
    private Integer totalAccounts;

    /**
     * 当前可租用的账号数量
     */
    private Integer availableAccounts;

    /**
     * 游戏类别
     */
    private String category;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    private MultipartFile img;

}
